package org.linlinjava.litemall.admin.controller.user.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.linlinjava.litemall.admin.util.DateUtil;
import org.linlinjava.litemall.core.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("礼物卡类型统计请求参数")
public class AdminUserPageReqVO extends PageParam {

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("会员等级")
    private Byte userLevel;

    @ApiModelProperty("状态")
    private Byte status;

    @ApiModelProperty("登录日期范围")
    @DateTimeFormat(pattern = DateUtil.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime[] lastLoginTimeRange;

    @ApiModelProperty("消费日期范围")
    @DateTimeFormat(pattern = DateUtil.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime[] consumeTimeRange;

    @ApiModelProperty("地区")
    private List<Integer> regionIds;

}
